﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using SchoolLibrary.Entity.Person;
using SchoolLibrary.Entity;

namespace SchoolLibrary.DataBase.Builder
{
    class ClassLeaderBuilder : AbstractPersonBuilder
    {
        public override Identity Build(DataRow row)
        {
            ClassLeader classLeader = new ClassLeader();
            BuildEntity(classLeader, row);
            return classLeader;
        }

        protected override void BuildEntity(Identity entity, DataRow row)
        {
            base.BuildEntity(entity, row);
        } 
    }
}
